package de.lulusoft.anothertorrent.core.xmlrpc;

import org.apache.xmlrpc.parser.AtomicParser;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;


/** Parser for long values.
 */
public class CustomI4Parser extends AtomicParser {
	protected void setResult(String pResult) throws SAXException {
		try {
			super.setResult((new Integer(pResult.trim())).longValue());
		} catch (NumberFormatException e) {
			throw new SAXParseException("Failed to parse int value: " + pResult,
										getDocumentLocator());
		}
	}
}